<template>
  <div>
    <br />
    <button @click="$emit('some-event', 'msg from grandsonson1')">
      grandsonson1点击
    </button>
    <br />
    <hr />
    <p>看看provide传递：{{ foo }}</p>
  </div>
</template>
<script>
export default {
  name: 'grandSonson1',
  components: {},
  data() {
    return {}
  },
  inject: ['foo'],
  mounted() {
    console.log(this.$parent.name)
    console.log(this.$attrs)
  },
  methods: {},
  activated: {},
  deactivated: {}
}
</script>
<style lang="less" scoped></style>
